home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1995 October / EnigmA AMIGA RUN 01 (1995)(G.R. Edizioni)(IT)[!][issue 1995-10][Aminet 7].iso / Aminet / util / misc / cookies.lha / Cookie / README.First < prev    next >
Text File  |  1995-04-27  |  2KB  |  66 lines

  1.  
  2. This is the 'cookie' fortune cookie program.
  3.  
  4. Original Unix version by Karl Lehenbauer
  5.  
  6. Amiga version by Andreas M. Kirchwitz
  7.  
  8. Improved Amiga version by
  9. Jörgen Grahn
  10. Wetterlinsgatan 13e
  11. 521 34 Falköping
  12. Sverige / Sweden / Suède
  13.  
  14. Changes from Andreas' port of Karl's cookie/cookhash 1.1:
  15.  
  16. o    I haven't touched their documnetation. This file is a third
  17.     level of documentation which supercedes the two other.
  18.  
  19. o    I always thought the randomness of the cookies was... inferior.
  20.     If I add cookies and rehash the file, a completely new set of
  21.     cookies will be displayed. Cookies seem to be selected from a
  22.     small subset of the database. I reverted to the original
  23.     ranged-random code, which seems to be better.
  24.  
  25. o    The format of the cookie file was a bit unclear. It used to be,
  26.     although not documented (note the closing "%%", it was needed
  27.     if you want the last cookie to be selectable):
  28.  
  29.     cookie
  30.     %%
  31.     cookie
  32.     %%
  33.     ...                   O L D   F O R M A T
  34.     %%
  35.     cookie
  36.     %%
  37.  
  38.     To this, I added the possibility of comments on the line
  39.     after the "%%". Then I decided to change 'cookhash' again -
  40.     that's where most of the parsing happens - to use flex rules.
  41.     I could then make the format even better. You should now view
  42.     the '%%' rows as comments introducing the cookie. An example:
  43.  
  44.     %% 
  45.     %% This cookie is really cool.
  46.     %%
  47.     - Huh-huh. Huh-huh-huh.
  48.     - Heh-heh hehehhehe-heeeeeeeiiiiiiaaaaa!
  49.         -Beavis & Butt-head
  50.     %%
  51.     Hi, my name is Lolita, an' this here is Tanqueray.  Since we're all about
  52.     to die, we were wondering if you'd like to be our last boyfriends on earth?
  53.         -Beavis & Butt-head: Tornado
  54.     %% Yet another short cookie:
  55.     core dumped: your fault
  56.     %% the last cookie:
  57.     I've seen the future baby - it is murder
  58.         Leonard Cohen
  59.  
  60.     Thus: '%%' _before_, not after each cookie!
  61.  
  62. o    Due to the changed format, the 'onecookie' utility may or may not
  63.     work. I won't fix that.
  64.  
  65. - Jörgen 1995-04-20
  66.